package com.taxi.driver.module.vo;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
import com.taxi.driver.data.entity.DriverEntity;

/**
 * 我的钱包
 */
public class MyWalletVO {

    public static MyWalletVO createFrom(DriverEntity entity) {
        if (entity == null) return new MyWalletVO();
        String strJson = JSON.toJSONString(entity);
        return JSON.parseObject(strJson, MyWalletVO.class);
    }

    @JSONField(name = "balance")
    public double balance; //余额

    @JSONField(name = "canWishdraw")
    public Integer canWishdraw; //是否可提现 1.是 2.否

    @JSONField(name = "poundageTitle")
    public String poundageTitle; //提现标题
}
